StoreEngine\Classes\Cart D

Total Complexity 205
Dependencies 17
Dependents 6
Total lines 1,458
Lines of code 760
Logical lines of code 401
Comment lines 450
Methods 96
Properties 13

Methods 96

Method Rating Maintainability Complexity Lines of code
add_product_to_cart()
A
37 10 74
merge_carts()
A
42 10 50
get_product_subtotal()
A
47 8 39
validate_cart_items()
A
46 8 37
generate_cart_item_id()
A
52 8 24
get_tax_totals()
S
49 7 30
load_cart()
S
49 6 32
get_cart_subtotal()
S
56 7 16
handle_remove_cart_item_request()
S
54 6 20
store_on_database()
S
54 5 21
get_taxes_total()
S
59 5 14
update_quantity()
S
58 5 14
handle_remove_coupon_request()
S
60 4 13
__construct()
S
53 3 21
is_product_in_cart()
S
66 4 8
get_cart_item_by_product()
S
67 3 8
get_tax_price_display_mode()
S
70 3 6
validate_coupon()
S
67 3 8
is_cart_consist_subscription_product()
S
64 3 10
find_product_in_cart()
S
68 3 8
has_onetime_products()
S
64 3 10
is_price_in_cart()
S
67 3 8
remove_cart_item()
S
62 2 11
apply_coupon()
S
63 2 11
get_totals()
S
79 2 3
calculate_cart_totals()
S
66 2 9
get_total()
S
73 2 4
get_remove_item_url()
S
73 2 4
get_displayed_subtotal()
S
78 2 3
get_cart_tax()
S
73 2 4
init()
S
69 2 7
get_total_discount()
S
68 2 7
get_product_price()
S
66 2 8
remove_coupon()
S
63 2 10
get_count()
S
69 2 7
get_coupon_discount_amount()
S
67 2 7
get_cart_contents_tax()
S
79 1 3
get_cart_contents_total()
S
79 1 3
get_shipping_tax()
S
79 1 3
get_shipping_total()
S
79 1 3
get_discount_tax()
S
79 1 3
is_coupon_applied()
S
79 1 3
get_discount_total()
S
79 1 3
get_total_tax()
S
79 1 3
get_subtotal_tax()
S
79 1 3
get_subtotal()
S
79 1 3
get_totals_var()
S
79 1 3
item_exists()
S
79 1 3
get_coupon_discount_tax_totals()
S
82 1 3
has_items()
S
79 1 3
get_shipping_taxes()
S
79 1 3
get_fee_total()
S
79 1 3
get_fee_tax()
S
79 1 3
set_fee_taxes()
S
80 1 3
get_cart_contents_taxes()
S
79 1 3
get_fee_taxes()
S
79 1 3
get_taxes()
S
77 1 3
get_cart_items()
S
82 1 3
remove_coupons()
S
72 1 6
clear_cart()
S
65 1 10
get_tax_amount()
S
74 1 4
get_shipping_tax_amount()
S
75 1 4
validate_items()
S
78 1 4
show_shipping()
S
79 1 3
get_coupon_discount_totals()
S
82 1 3
set_fee_total()
S
79 1 3
set_cart_contents_taxes()
S
80 1 3
set_coupon_discount_tax_totals()
S
81 1 3
get_coupons()
S
82 1 3
get_fees()
S
82 1 3
get_coupon_discount_tax_amount()
S
78 1 3
has_subscription_product()
S
79 1 3
is_cart_empty()
S
79 1 3
get_cart_hash()
S
82 1 3
display_prices_including_tax()
S
78 1 3
get_customer()
S
81 1 3
reset_totals()
S
76 1 4
get_items_count()
S
80 1 3
get_cart_item()
S
80 1 3
set_coupon_discount_totals()
S
81 1 3
set_applied_coupons()
S
81 1 3
set_shipping_taxes()
S
80 1 3
set_totals()
S
79 1 3
set_subtotal()
S
79 1 3
set_subtotal_tax()
S
80 1 3
set_discount_total()
S
80 1 3
set_discount_tax()
S
80 1 3
set_shipping_total()
S
79 1 3
set_shipping_tax()
S
80 1 3
set_cart_contents_total()
S
79 1 3
set_cart_contents_tax()
S
80 1 3
set_total()
S
78 1 3
set_total_tax()
S
79 1 3
needs_payment()
S
78 1 3
set_fee_tax()
S
80 1 3
calculate_shipping()
S
82 1 3